﻿using System.Collections.Generic;
using Bogus;
using TodoApp.Models;
namespace TodoApp.Data
{
    public class TodoItemGen
    {
     
        public static List<TodoItem> GenData(int n) {
           
            Int32 Ids = 1;
            var todofaker = new Faker<TodoItem>()
                .RuleFor(i => i.Id, f => Ids++)
                .RuleFor(i => i.Name, f => f.Name.FirstName())
                .RuleFor(i => i.IsComplete, f => f.PickRandom<bool>(new Boolean[] { true,false}));
            return todofaker.Generate(n).ToList();
        }
        
    }
}